package com.cz.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class WebMVC implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/image1/**").addResourceLocations("file:D:/NovaTraffic/jietupic/");
        registry.addResourceHandler("/image2/**").addResourceLocations("file:D:/NovaTraffic/jietupicn/");
        registry.addResourceHandler("/plugins/**").addResourceLocations("file:D:/raip-yq/plugins/");
    }
}
